<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <!-- <script src="https://cdn.jsdelivr.net/npm/vue"></script> -->
    <script src="vue/dep.js"></script>
    <script src="./vue/watcher.js"></script>
    <script src="./vue/compiler.js"></script>
    <script src="./vue/observer.js"></script>
    <script src="./vue/vue.js"></script>
</head>
<body>
    <div id="app">
        <h1>差值表达式：</h1>
        <h3>{{msg}}</h3>
        <h3>{{count}}</h3>
        <h1>v-text</h1>
        <div v-text="msg"></div>
        <h1>v-model</h1>
        <input type="text" v-model="msg" />
        <input type="text" v-model="count">
        <p v-html="textHtml"></p>
        <b v-on="clickHandler">button</b>
    </div>
    <script>
        let vm = new Vue({
            el: '#app',
            data: {
                msg: 'Hello',
                count: 20,
                person: {
                    name: 'zs'
                },
                textHtml: '<b><font color="#f00">122</font></b>'
            }
        })
        function clickHandler() {
            alert(129)
        }
        // vm.msg = {test: 'hello'}
        // 真实dom
        // let element = document.querySelector('#app')
        // let s = ''
        // for in 用来遍历数组或对象的属性（只会遍历自定义的属性）
        // for(var key in element) {
        //     s += key + ','
        // }
        // console.log(s);
    </script>
</body>
</html>